package com.baikeyang.mapper;

import com.baikeyang.common.bean.activity.SimpleActivityInfo;
import com.baikeyang.common.model.ActivityInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author BaiKeyang
 * @since 2020-05-20
 */
public interface ActivityInfoMapper extends SuperMapper<ActivityInfo> {

    IPage<SimpleActivityInfo> selectSimpleActivityInfos(Page page);

    IPage<SimpleActivityInfo> selectJoinSimpleActivityInfos(Page page, @Param(value = "userId") Long userId);

    IPage<SimpleActivityInfo> selectFavSimpleActivityInfos(Page page, @Param(value = "userId") Long userId);

}
